﻿using UnityEngine;
using System.Collections;
using System.Collections.Generic;
using Holoville.HOTween;

public partial class FriendScene : Scene
{
	public override void BackButton ()
	{
		SceneController.LoadLevel("Main");
	}

	public override void ButtonTouch(Collider collider)
	{      
		switch (collider.gameObject.name)
		{
		case "Button - Find Friend":
			OnClick_FindFriend();
			break;
		}
	}

	public void OnClick_DefaultFriend()
	{
		Debug.Log ("OnClick_DefaultFriend");
		SelectTab(TAB_TYPE.DEAULT_FRIEND);
	}

	public void OnClick_RequestFriend()
	{
		Debug.Log ("OnClick_RequestFriend");
		SelectTab(TAB_TYPE.REQUEST_FRIEND);
	}

	public void OnClick_FindFriend()
	{
		Debug.Log ("OnClick_FindFriend");
		Popup_FindFriend pf = PopupManager.PushPopup(PopupKind.FindFriend) as Popup_FindFriend;
		pf.sceneObject = this.gameObject;
	}
}